import {ForumStatus} from "./ForumStatus.ts";

/**
 * 子版面 / 合集
 */
export interface SubForum {
    type: 'forum' | 'col'
    id: number
    name: string
    mirrorId: number
    status: ForumStatus[]
}

export interface TinyForum {
    id: number
    name: string
}


//收藏版面
export interface FavorForum {
    //版面id
    fid?: number
    // id
    id: number
    // 信息
    info?: string
    // 版面或合集名称
    name: string
    // 合集Tid
    stid?: number
}

export interface ForumSearchResult {
    fid: number
    stid?: number | undefined
    descrip?: string | undefined | null
    index: string
    name: string
    parent?: {
        fid: number
        name: string
        descrip?: string | undefined | null
    } | undefined
    relevance: number
    topic_misc_var: { [key: number]: number }
    url: string
}